#ifndef GND_CONNECT_H
#define GND_CONNECT_H

#include <gtk/gtk.h>
//#include "gndsession.h"

typedef struct _GndSession GndSession;
typedef struct _GndApp GndApp;

G_DECLARE_FINAL_TYPE(GndConnect, gnd_connect, GND, CONNECT, GObject)

#define GND_TYPE_CONNECT (gnd_connect_get_type())

GndConnect * gnd_connect_new(GndApp * app);
//void gnd_connect_init(GndConnect * self);
gboolean gnd_connect_set_deviceid(GndConnect * self, gchar * d_id);
gchar * gnd_connect_get_deviceid(GndConnect * self);
gboolean gnd_connect_start(GndConnect * self);
gboolean gnd_connect_stop(GndConnect * self);
gboolean gnd_connect_is_connecting(GndConnect * self);
gboolean gnd_connect_add_session(GndConnect * self, GndSession * session);
GMainContext * gnd_connect_get_main_context(GndConnect * self);
gboolean gnd_connect_attach_source(GndConnect * connect, GSource * source);

#endif
